package com.itheima.TestWork3;

public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat("ee",33);

        System.out.println("猫的名字：" + cat.getName() +",猫的年龄"+cat.getAge());
        cat.eat();

        Dog dog = new Dog("小虎",9);
        System.out.println("狗的名字：" + dog.getName() +",狗的年龄"+dog.getAge());
        dog.eat();
    }
}
